She said if anyone had reported this to her that she would have checked the wall and “taken appropriate action”, adding: “I’m not aware of any of my colleagues talking about the wall either or discussing it with pupils.”

The court also heard a statement from head of PE Stuart Robertson, who said he was passed by the school nurse as she ran to the old PE block with a first aid kit.

He said she asked him where the accident was – to which he replied that he did not know – and that he then followed her.

Upon arrival, Mr Robertson said a number of pupils – some of whom were crying – were waiting in a group outside the changing rooms.

He described seeing the partition wall on the floor and CPR then being administered by the school nurse.

However, Mr Robertson added the first he heard about the wall being wobbly was from newspapers, saying he “had never heard anything about it” before Keane’s death.

The inquiry, which is expected to take two weeks, has also heard evidence from statements given to police by pupils.

One pupil, who was 15 when Keane died, said the wall which collapsed had been “shaky” ever since she started at Liberton.

She recalled giving the wall a wide berth following an incident a few years before when she felt it move after being leant against by students.

She said: “I was frightened by what happened and I have never changed near the wall since.”