Revert "DO NOT MERGE Control fault injection with config files instead of build flags"

This reverts commit f73abf36bc.

Bug: 27724259
Change-Id: I1301fdad15650837d0b1febd0c3239134e2b94fb
This commit is contained in:
Tao Bao
2016-03-17 22:29:23 +00:00
committed by The Android Automerger
parent e728c978a2
commit b1e4100011
10 changed files with 137 additions and 237 deletions
+2 -4
View File
@@ -17,18 +17,16 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include "ota_io.h"
int main(int /* argc */, char** /* argv */) {
int main(int argc, char **argv) {
int fd = open("testdata/test.file", O_RDWR);
char buf[8];
const char* out = "321";
char *out = "321";
int readv = ota_read(fd, buf, 4);
printf("Read returned %d\n", readv);
int writev = ota_write(fd, out, 4);
printf("Write returned %d\n", writev);
close(fd);
return 0;
}