port: tests: Add sys/wait.h include for FreeBSD
[babeltrace.git] / tests / ctf-writer / ctf_writer.c
index 16430b793eb59f420c2938c49882c59aa35da720..0b979acef9dfdf64347786a80e87ed82ad0f8d3d 100644 (file)
@@ -1,22 +1,7 @@
 /*
- * test_ctf_writer.c
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * CTF Writer test
- *
- * Copyright 2013 - 2017 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; under version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * Copyright (C) 2013-2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  */
 
 #include <babeltrace2-ctf-writer/writer.h>
 #include <float.h>
 #include "common.h"
 
+#ifdef __FreeBSD__
+/* Required for WIFEXITED and WEXITSTATUS */
+#include <sys/wait.h>
+#endif
+
 #define METADATA_LINE_SIZE 512
 #define SEQUENCE_TEST_LENGTH 10
 #define ARRAY_TEST_LENGTH 5
@@ -2073,5 +2063,5 @@ int main(int argc, char **argv)
        g_free(trace_path);
        g_free(metadata_path);
 
-       return 0;
+       return exit_status();
 }
This page took 0.023512 seconds and 4 git commands to generate.