/src/mozilla-central/tools/fuzzing/libfuzzer/FuzzerUtilLinux.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | //===- FuzzerUtilLinux.cpp - Misc utils for Linux. ------------------------===// |
2 | | // |
3 | | // The LLVM Compiler Infrastructure |
4 | | // |
5 | | // This file is distributed under the University of Illinois Open Source |
6 | | // License. See LICENSE.TXT for details. |
7 | | // |
8 | | //===----------------------------------------------------------------------===// |
9 | | // Misc utils for Linux. |
10 | | //===----------------------------------------------------------------------===// |
11 | | #include "FuzzerDefs.h" |
12 | | #if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD || \ |
13 | | LIBFUZZER_OPENBSD |
14 | | #include "FuzzerCommand.h" |
15 | | |
16 | | #include <stdlib.h> |
17 | | |
18 | | namespace fuzzer { |
19 | | |
20 | 0 | int ExecuteCommand(const Command &Cmd) { |
21 | 0 | std::string CmdLine = Cmd.toString(); |
22 | 0 | return system(CmdLine.c_str()); |
23 | 0 | } |
24 | | |
25 | | } // namespace fuzzer |
26 | | |
27 | | #endif |