Make getprogramexecutablename_test report status

Fixes #988
This commit is contained in:
Justine Tunney 2023-12-04 23:19:28 -08:00
parent cd52c59552
commit 536dfb947a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -47,7 +47,7 @@ __attribute__((__constructor__)) static void Child(int argc, char *argv[]) {
if (argc >= 2 && !strcmp(argv[1], "Child")) {
ASSERT_EQ(3, argc);
EXPECT_STREQ(argv[2], GetProgramExecutableName());
exit(0);
exit(g_testlib_failed);
}
}