Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell status code not always correctly set. (Test08 fails) #25

Open
paulhankin opened this issue Sep 23, 2021 · 0 comments
Open

Shell status code not always correctly set. (Test08 fails) #25

paulhankin opened this issue Sep 23, 2021 · 0 comments

Comments

@paulhankin
Copy link

Test08 fails, in that it returns a non-zero shell status code (1 on my machine).

The main() function calls std::exit(0), so the status code should be 0. (Just as a note -- the call to std::exit(0) is redundant in the test, since dropping off the end of main is the same as returning 0, which is the same as exit(0)).

dbt run "//libsupcxx/tests/Test08" cc-toolchain=linux-x86_64-libsupcxx

Running libsupcxx/tests/Test08:
Constructing global object
glibcxx datestamp: 20180726
glibcxx release: 8
sizeof(std::size_t): 8
float eval method: 0
ULLONG_MAX: 18446744073709551615
__alignas_is_defined: 1
printArgs(5, 1, 2, 3, 4, 5)
__bool_true_false_are_defined: 1
sizeof(std::uint8_t): 1
At exit function called
Destructing global object
FAILED: libsupcxx/tests/Test08#run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant