summaryrefslogtreecommitdiffstats
path: root/tests/xspawnee.c
blob: b0a76ca9a5f7c4f26a230e45b50c0b01f526893d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <stdlib.h>
#include <string.h>

/** Child binary for bfs_spawn() tests. */
int main(int argc, char *argv[]) {
	if (argc >= 2) {
		const char *path = getenv("PATH");
		if (!path || strcmp(path, argv[1]) != 0) {
			return EXIT_FAILURE;
		}
	}

	return EXIT_SUCCESS;
}