aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_corruption_2.in
blob: 4db3b7c420a2c75825d35d5919784af310cab807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <stdio.h>

void bye() { printf("all ok\n"); }

int main() {
  atexit(bye);

  std::string testPath = "/Script/WA-KA.txt";
  std::fstream str(testPath.c_str(), std::ios::in | std::ios::binary);

  if (str.is_open()) {
    std::cout << "open!" << std::endl;
  } else {
    std::cout << "missing!" << std::endl;
  }

  return 1;
}