diff options
author | Claudio André <claudioandre.br@gmail.com> | 2018-02-02 14:28:00 -0200 |
---|---|---|
committer | Claudio André <claudioandre.br@gmail.com> | 2018-02-01 14:32:55 -0200 |
commit | 6634a7e9e9646ebf5867b4c4ae082f6db234c704 (patch) | |
tree | a990a978c972d852afefcd83d35cd0088822a492 /installed-tests | |
parent | a716502cb0f78ed3a5e9e4817605ac4c0b93c5ed (diff) |
CI: use a more robuts test for profiling dumping
Current tests are failing frequently.
Diffstat (limited to 'installed-tests')
-rwxr-xr-x | installed-tests/scripts/testCommandLine.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh index d31a8c22..7df3f3d5 100755 --- a/installed-tests/scripts/testCommandLine.sh +++ b/installed-tests/scripts/testCommandLine.sh @@ -162,7 +162,7 @@ report "--version after -c should not print anything" # --profile rm -f gjs-*.syscap foo.syscap -$gjs -c 'imports.system.exit(0)' && test ! -f gjs-*.syscap +$gjs -c 'imports.system.exit(0)' && ! stat gjs-*.syscap &> /dev/null report "no profiling data should be dumped without --profile" # Skip some tests if built without profiler support @@ -173,7 +173,7 @@ if $gjs --profile -c 1 2>&1 | grep -q 'Gjs-Message.*Profiler is disabled'; then skip "GJS_ENABLE_PROFILER=1 should enable the profiler" "$reason" else rm -f gjs-*.syscap - $gjs --profile -c 'imports.system.exit(0)' && test -f gjs-*.syscap + $gjs --profile -c 'imports.system.exit(0)' && stat gjs-*.syscap &> /dev/null report "--profile should dump profiling data to the default file name" rm -f gjs-*.syscap $gjs --profile=foo.syscap -c 'imports.system.exit(0)' && test -f foo.syscap @@ -181,7 +181,7 @@ else rm -f foo.syscap && rm -f gjs-*.syscap GJS_ENABLE_PROFILER=1 $gjs -c 'imports.system.exit(0)' && stat gjs-*.syscap &> /dev/null report "GJS_ENABLE_PROFILER=1 should enable the profiler" - ls -lah gjs-*.syscap; rm -f gjs-*.syscap + rm -f gjs-*.syscap fi # interpreter handles queued promise jobs correctly |