~ubuntu-branches/ubuntu/trusty/emscripten/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/core/test_corruption_2.in

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140119141240-jg1l42cc158j59tn
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <iostream>
 
2
#include <fstream>
 
3
#include <stdlib.h>
 
4
#include <stdio.h>
 
5
 
 
6
void bye() { printf("all ok\n"); }
 
7
 
 
8
int main() {
 
9
  atexit(bye);
 
10
 
 
11
  std::string testPath = "/Script/WA-KA.txt";
 
12
  std::fstream str(testPath.c_str(), std::ios::in | std::ios::binary);
 
13
 
 
14
  if (str.is_open()) {
 
15
    std::cout << "open!" << std::endl;
 
16
  } else {
 
17
    std::cout << "missing!" << std::endl;
 
18
  }
 
19
 
 
20
  return 1;
 
21
}