diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-06-10 11:53:56 +1000 |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-06-10 11:53:56 +1000 |
commit | f02280f464c8bd976221d723a6acac20c971ddd7 (patch) | |
tree | f68a575a09c21c8627049c6629aa446352101b53 /tests/auto/declarative/v8/v8main.cpp | |
parent | df4add062fc7368d9fee7c697405c43422b0af27 (diff) |
Allow v8 autotest to run without Qt
Diffstat (limited to 'tests/auto/declarative/v8/v8main.cpp')
-rw-r--r-- | tests/auto/declarative/v8/v8main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/v8/v8main.cpp b/tests/auto/declarative/v8/v8main.cpp new file mode 100644 index 0000000000..bf37e2d3a5 --- /dev/null +++ b/tests/auto/declarative/v8/v8main.cpp @@ -0,0 +1,16 @@ +#include "v8test.h" +#include <stdio.h> + +#define RUN_TEST(testname) { \ + if (!v8test_ ## testname()) \ + printf ("Test %s FAILED\n", # testname); \ +} + +int main(int argc, char *argv[]) +{ + v8::V8::SetFlagsFromCommandLine(&argc, argv, true); + + RUN_TEST(eval); + + return -1; +} |